<p>
  <b>Name:</b>
  <%=h @team.name %>
</p>

<p>
  <b>Address:</b>
  <%=h @team.address %>
</p>

<table class="display">
	<tr>
		<th>#</th>
		<th>Name</th>
	</tr>
	<% for player in @team.players %>
		<tr>
			<td>?</td>
			<td><%= player.name %></td>
		</tr>
	<% end %>
</table>

<h2>Recent games</h2>
<table class="display">
	<tr>
		<th>Date</th>
		<th>Team 1</th>
		<th>Team 2</th>
	</tr>
</table>


<%= link_to 'Edit', edit_team_path(@team) %> |
<%= link_to 'Back', teams_path %>